class Person:
    def __init__(self,name,age):
        self.name=name
        self.age=age
    def __del__(self):
        print('%s is deleted'%self.name)
    def introduce(self):
        print('name=%s,age=%d'%(self.name,self.age))
tom=Person('tom',10)
tom.introduce()
del tom